<template>
	<view class="safety">
		<view>
			<view @click="skip('/pages/user/list/transpose/transpose?type=0&mobile='+mobile)" style="border-bottom: 1px solid #F0F0F0;">更换手机号
				<p>{{mobile}}<u-icon style="margin-left: 10rpx;" name="arrow-right" size="18"></u-icon></p>
			</view>
			<p @click="skip('/pages/user/list/transpose/transpose?type=1&mobile='+mobile)">注销账号<u-icon name="arrow-right" size="18"></u-icon></p>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mobile: "",
			};
		},
		methods: {
			skip(url) {
				uni.navigateTo({
					url,
				})
			}
		},
		onLoad(option) {
			this.mobile = option.mobile;
		}
	}
</script>

<style lang="less">
	.safety {
		padding-top: 20rpx;

		&>view {
			width: 690rpx;
			background: #fff;
			border-radius: 20rpx;
			margin: 20rpx auto;
			padding: 0 20rpx;
			box-sizing: border-box;

			&>view,
			&>p {
				display: flex;
				align-items: center;
				justify-content: space-between;
				height: 86rpx;
				width: 100%;

				&>p {
					display: flex;
				}
			}
		}
	}
</style>